package com.ftwj.demo.modular.entity;

import java.io.Serializable;

import javax.validation.constraints.NotNull;

import com.ftwj.demo.base.annotation.Column;
import com.ftwj.demo.base.annotation.Ignore;
import com.ftwj.demo.base.annotation.Primarykey;
import com.ftwj.demo.base.annotation.Table;
import com.ftwj.demo.utils.validate.ValidateGroupKey;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
*
* <p>Title: AreaBean</p>  
* <p>Description: 描述</p>
* <p>Copyright: Copyright (c) 2020 </p>  
* <p>Company: 兰州飞天网景信息产业有限公司</p>    
* @author WangSli
* @date 2020年04月10日 18:35:12
* @version V1.0
*/
@Data
@Table(name="tb_area")
@Accessors(chain=true)
@ApiModel(value="AreaBean对象", description="")
public class AreaBean implements Serializable {

	/** serialVersionUID*/ 
	@Ignore
	private static final long serialVersionUID = 1L;
	
	@NotNull(groups=ValidateGroupKey.class)
 	@Primarykey(name="area_id",auto = false)
	@ApiModelProperty(value = "地区编码")
	private String areaId;
	@NotNull(groups=ValidateGroupKey.class)
	@ApiModelProperty(value = "地区名")
	private String name;
	@NotNull(groups=ValidateGroupKey.class)
	@Column(name="short_name")
	@ApiModelProperty(value = "区域名称缩写")
	private String shortName;
	@NotNull(groups=ValidateGroupKey.class)
	@ApiModelProperty(value = "地区父id")
	private String pid;
	@NotNull(groups=ValidateGroupKey.class)
	@ApiModelProperty(value = "地区级别（1:省份,2:市,3:区县,4:街道）")
	private Integer level;
	@NotNull(groups=ValidateGroupKey.class)
	@ApiModelProperty(value = "城市编码")
	private String code;
	@NotNull(groups=ValidateGroupKey.class)
	@ApiModelProperty(value = "城市中心点（即:经纬度坐标）")
	private String description;
	
}